<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\User;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class WithdrawalCash
 *
 * @property int $id
 * @property int $user_id
 * @property int $withdrawal_number
 * @property string $content
 * @property float $money
 * @property int $status
 * @property Carbon $created_at
 * @property Carbon $updated_at
 *
 * @package App\Models
 */
class WithdrawalCash extends Model
{
	protected $table = 'withdrawal_cash';

	protected $casts = [
		'user_id' => 'int',
		'withdrawal_number' => 'varcha',
		'money' => 'float',
		'status' => 'int'
	];

	protected $fillable = [
		'user_id',
		'withdrawal_number',
        'withdrawal_type',
        'remark',
		'content',
		'money',
		'status'
	];
	const STATUS_ING = 1; # 申请中
	const STATUS_PAY_SUCCESS = 2; # 支付成功
	const STATUS_PAY_FAIL = 3; # 支付失败
	const STATUS_RETURN = 4;# 退款
}
